<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<jsp:include page="/WEB-INF/views/commons/center_top.jsp"/>
<script type="text/javascript" src="/static/module/commons/public.js"></script>

<div class="contBox clear">
	<div class="col-xs-12 no-padding">
		<div class="col-xs-6 no-padding">
			<div class="widget-box">
				<div class="widget-header header-color-blue">
					<span>人员管理</span>
					<div class="widget-toolbar no-border">
						<div class="btn-group">
							<button id="add_grid-table" class="btn btn-info btn-sm" onclick="addUser()" ><span class="icon-plus-sign"></span>添加</button>
							<button id="edit_grid-table" class="btn btn-info btn-sm" onclick="editUser()"><span class="icon-pencil"></span>编辑</button>
							<button id="del_grid-table" class="btn btn-info btn-sm" onclick="deleteUser()"><span class="icon-trash"></span>删除</button>
							<button id="view_grid-table" class="btn btn-info btn-sm" onclick="resetPassword()"><span class="icon-pencil"></span>重设密码</button>
						</div>
					</div>
				</div>
				<div class="widget-body">
					<table id="grid-table"></table>
					<div id="grid-pager"></div>
				</div>
			</div>
		</div>
		<div id="userinfo" class="col-xs-6 no-padding-right" style="display: none">
		 	<div class="widget-box">
			 	<div class="widget-header header-color-blue">
			 		<span class="title">人员编辑</span>
					<div class="widget-toolbar no-border">
						<div class="btn-group">
							<button class="btn btn-info btn-sm ifshow" onclick="doSaveUser()"  id="roleSave">
									<i class="icon-save bigger-150"></i>
									保存
							</button>
						</div>
					</div>
				</div>
			 	<div class="widget-body">
			 	<div class="widget-main padding-8">
				<div id="dictinfo" class="clear tree-unselectable">
				 	<form name="userform" id="userform" class="FormGrid"   >
						<input type="hidden"  name="deptId" id="form_user_dept" />
						<input type="hidden"  name="id" id="form_user_id" />
						<div class="form-group col-sm-12">
							<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 用户名称 </label>
							<div class="col-sm-10">
								<input name="username" id="form_user_name" class="col-xs-10 col-sm-9 required" type="text" >
							</div>
						</div>
						<div class="form-group col-sm-12">
							<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 用户编码 </label>
							<div class="col-sm-10">
								<input name="code" id="form_user_code" class="col-xs-10 col-sm-9 required" type="text" >
							</div>
						</div>
						<div class="form-group col-sm-12">
							<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 所属单位 </label>
							<div class="col-sm-10">
								<div class="input-group col-xs-10 col-sm-9 no-padding"  >
									<input id="deptName" name="" readonly="readonly" type="text" value="" data-msg-required="" class="form-control " style="">
									<span class="input-group-btn"  onclick="showMenu(); return false;">
										<a href="javascript:" class="btn btn-primary btn-sm dropdown-toggle"> <span class="caret"></span></a>
									</span>
									<div id="menuContent" class="menuContent " style="display:none; position: absolute; z-index:999">
										<ul id="treeDemo" class="ztree" style="margin-top:0; "></ul>
									</div>
								</div>
							</div>
						</div>
					</form>
				</div>
				</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" src="/static/module/system/user/index.js"></script>
<jsp:include page="/WEB-INF/views/commons/center_bottom.jsp"/>